tools/libxl: Replace deprecated -soundhw on QEMU command line
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 11 Oct 2022 12:59:10 +0000 (14:59 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 11 Oct 2022 12:59:10 +0000 (14:59 +0200)
commite85e2a3c17b6cd38de041cdaf14d9efdcdabad1a
tree0b7d51fb255ca1d59196770199f94595f85316d9
parent32cb81501c8b858fe9a451650804ec3024a8b364
tools/libxl: Replace deprecated -soundhw on QEMU command line

-soundhw is deprecated since 825ff02911c9 ("audio: add soundhw
deprecation notice"), QEMU v5.1, and is been remove for upcoming v7.1
by 039a68373c45 ("introduce -audio as a replacement for -soundhw").

Instead we can just add the sound card with "-device", for most option
that "-soundhw" could handle. "-device" is an option that existed
before QEMU 1.0, and could already be used to add audio hardware.

The list of possible option for libxl's "soundhw" is taken the list
from QEMU 7.0.

The list of options for "soundhw" are listed in order of preference in
the manual. The first three (hda, ac97, es1370) are PCI devices and
easy to test on Linux, and the last four are ISA devices which doesn't
seems to work out of the box on linux.

The sound card 'pcspk' isn't listed even if it used to be accepted by
'-soundhw' because QEMU crash when trying to add it to a Xen domain.
Also, it wouldn't work with "-device" might need to be "-machine
pcspk-audiodev=default" instead.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Jason Andryuk <jandryuk@gmail.com>
master commit: 62ca138c2c052187783aca3957d3f47c4dcfd683
master date: 2022-08-18 09:25:50 +0200
docs/man/xl.cfg.5.pod.in
tools/libs/light/libxl_dm.c
tools/libs/light/libxl_types_internal.idl